package com.bw.books.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.books.domain.Books;
import com.bw.books.mapper.BooksMapper;
import com.bw.books.service.BooksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName BooksServiceImpl
 * @Description 描述
 * @Author GYW
 * @Date 2024-11-20 22:02
 */
@Service
public class BooksServiceImpl extends ServiceImpl<BooksMapper, Books> implements BooksService {

    @Autowired
    private BooksMapper booksMapper;


    /**
     * 修改
     *
     * @param books
     * @return
     */
    @Override
    public int updateBooks(Books books) {
        return booksMapper.updateById(books);
    }
}
